package com.cloudfun.campusshare.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author : zhangyongjie
 * @version : 1.0
 * @createTime : 2020/5/8 15:35
 * @description :
 */
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "device_brand")
public class DeviceBrandEntity extends CreatorPersistenceEntity {

    @Id
    @GenericGenerator(name = "id_uuid", strategy = "uuid")
    @GeneratedValue(generator = "id_uuid")
    @Column(name = "id", unique = true, columnDefinition = ("varchar(40) not null comment '主键uuid'"))
    private String id;

    @Column(name = "name", columnDefinition = ("varchar(40) default null comment '设备品牌名称'"))
    private String name;

    @Column(name = "charge_man", columnDefinition = ("varchar(40) default null comment '负责人'"))
    private String chargeMan;

    @Column(name = "charge_man_phone", columnDefinition = ("varchar(40) default null comment '负责人电话'"))
    private String chargeManPhone;

    @Column(name = "service_phone", columnDefinition = ("varchar(40) default null comment '客服电话'"))
    private String servicePhone;
}
